class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.string  :body
      t.integer :rating, :default => 0

      t.references :document
      t.references :user

      t.timestamps
    end
  end
end
